@import '@influxdata/clockface/dist/variables.scss';

.annotation-pills {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  padding: 0 $cf-border;
}

.annotation-pill {
  margin: $cf-border;
  height: $cf-form-sm-height - $cf-space-3xs;
  display: flex;
  align-items: center;
  padding: 0 $cf-space-2xs;
  border-radius: ($cf-form-sm-height - $cf-space-3xs) * 0.5;
  background-color: $cf-grey-15;

  &:hover {
    cursor: default;
  }
}

.annotation-pill--swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: $cf-space-3xs;
}

.annotation-pill--label {
  font-size: $cf-form-sm-font;
  font-weight: $cf-font-weight--medium;
  color: $cf-grey-85;
  line-height: $cf-form-sm-height;
  margin-right: $cf-space-3xs;
  user-select: none;
}

.annotation-pill--button {
  border: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  text-align: center;
  background-color: transparent;
  color: $cf-grey-45;
  transition: color 0.25s ease;

  &:hover {
    cursor: pointer;
    color: $cf-grey-95;
  }

  &:active {
    color: $c-dreamsicle;
  }

  &:focus {
    outline: none;
  }
}
